$(function () {
    var slider = mui("#slider");
    slider.slider({
        interval: 3000
    });
    $.ajax({
        type:"GET",
        url:"/uc/schedule/message/list",
        data:{"current":1,"rows":6,"title":"null"},
        dataType:"json",
        error:function () {
            console.log("请求失败！");
        },
        success:function (data) {
            var html="";
            if(null!=data&&""!=data){
                var dataList=data.dataList;
                if(null!=dataList&&dataList.length>0){
                    for (var i=0;i<dataList.length;i++){
                        html=html+"<li class='mui-table-view-cell mui-media'>" +
                            "<a class='mui-navigate-right' href='/uc/schedule/message/"+dataList[i].messageId+"/index'>" +
                            "<div class='mui-media-body mui-ellipsis'>"+dataList[i].messageTitle+
                            "<p class='mui-ellipsis custom-ellipsis-size'>时间："+dataList[i].sendTime+"</p>" +
                            "</div></a></li>";
                    }
                }
            }
            $(".custom-notice").html(html);
        }
    });
});
    